<?php
/*
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 * $Id: 2017-12-13 03:39:35 apple $
*/
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'get';
if($_RQ['op']=='get'){
	$return['ischecklogin']=model('core/core')->checklogin('','',true);
	$_SESSION['memberid']=$this->model('member')->checkmember();
	$_SESSION['logout_forward']='jy_aihire/home';
	$member=pdo_get('jy_aihire_member',array('id'=>$_SESSION['memberid'],'uniacid'=>$_SESSION['uniacid']));
	if(!$member){
		exi('找不到会员信息！','error');
	}
	$return['member']=$member;
	$return['list']=pdo_getall('jy_aihire_hetonglist',array('memberid'=>$_SESSION['memberid'],'uniacid'=>$_SESSION['uniacid']));
	set_html('title','我的合同');
	exi($return);
}
if($_RQ['op']=='look'){
	$member=pdo_get('jy_aihire_member',array('id'=>$_SESSION['memberid'],'uniacid'=>$_SESSION['uniacid']));
	if(!$member){
		exi('找不到会员信息！','error');
	}
	$return['member']=$member;
	if($_RQ['id']){
		$return['item']=pdo_get('jy_aihire_hetonglist',array('id'=>$_RQ['id'],'uniacid'=>$_SESSION['uniacid']));
	}else{
		$return['item']=array('mobile'=>$member['mobile']);
	}
	set_html('title','我的合同');
	exi($return);
}